package org.dub.consumer.service;

import org.apache.dubbo.config.annotation.DubboReference;
import org.dub.api.entity.HelloRes;
import org.dub.api.entity.Userinfo;
import org.dub.api.service.UserService;
import org.springframework.stereotype.Service;

/**
 * Created By bobin on 2024/7/26
 */
@Service
public class UserServiceImpl implements UserService {
    //@DubboReference(url = "tri://127.0.0.1:20880/org.dub.api.service.UserService?serialization=fastjson2")
    //@DubboReference(url = "tri://127.0.0.1:20880?serialization=protobuf")
    @DubboReference
    private UserService userService;



    @Override
    public HelloRes SayHello(Userinfo userinfo) {
        HelloRes res= userService.SayHello(userinfo);
        return res;
    }
}
